package TransactionImplementation

//更改每小时事务
//引入类
import (
	"SalaryPayment/AbstractTransaction"
	"SalaryPayment/Model"
	"SalaryPayment/ModelImplementation"
)

//结构体
type ChangeHourlyTransaction struct {
	AbstractTransaction.ChangeClassificationTransaction
	itsHourlyRate float64
}

//支付分类
func (ace *ChangeHourlyTransaction) GetClassification() Model.PaymentClassification {
	//返回每小时分类
	return ModelImplementation.NewHourlyClassification(ace.itsHourlyRate)
}

//付款时间表
func (ace *ChangeHourlyTransaction) GetSchedule() Model.PaymentSchedule {
	//返回双周时间表
	return ModelImplementation.BiweeklySchedule{}
}
